namespace EyeOpen.Trial.Data
{
	using System;

	using EyeOpen.Trial.Domain;

	public class DbPopulator
	{
		private readonly IApplicationUnitOfWork applicationContext;

		public DbPopulator(IApplicationUnitOfWork applicationContext)
		{
			this.applicationContext = applicationContext;
		}

		public void Populate()
		{
			applicationContext
				.ApplicationRepository
				.Add(new Application
					{
						Id = new Guid("7f733f93-25e8-4979-a6cd-7e708f4a706d"), 
						Serial = "001"
					});

			applicationContext.Commit();
		}
	}
}